package cn.nebula.music.dao;

import java.util.Set;

import org.springframework.stereotype.Repository;

import cn.nebula.music.domain.UserAlbum;

@Repository
public interface UserAlbumDAO {
	public Set<UserAlbum> findAllUserAlbums();

	public Set<UserAlbum> findUserAlbumsByUserId(Integer userId);

	public Set<UserAlbum> findUserAlbumsByAlbumId(Integer albumId);

	public Integer addUserAlbum(UserAlbum userAlbum);

	public Integer updateUserAlbumByUserId(UserAlbum userAlbum);

	public Integer updateUserAlbumByAlbumId(UserAlbum userAlbum);

	public Integer deleteUserAlbum(UserAlbum userAlbum);

	public Integer deleteUserAlbumByUserId(Integer id);

	public Integer deleteUserAlbumByAlbumId(Integer id);
}
